<?php include('base.php')?>
<?php $this->template->startblock('main') ?>
<form action="<?php echo site_url();?>post/adduser" method="post">
<h2>设置</h2>
<table cellspacing="0" cellpadding="0" width="100%">
	<tr class="tr3">
		<td width="40%">是否开启日志记录<br/>(开启日志记录会降低系统执行效率)</td>
		<td><input type="radio" value="" name="islog" id="yeslog"/><label for="yeslog">开启</label> <input type="radio" value="" name="islog" id="nolog"/><label for="nolog">关闭</label> <input type="submit" value="提 交" class="btn" /></td>
	</tr>
</table>
<br/>
</form>
<form action="" method="post">
<h2>搜索</h2>
<table cellspacing="0" cellpadding="0" width="100%">
<tr class="tr3">
	<td>日期：<input type="text" class="input Wdate" name="stime" value="<?php echo $this->input->post('stime');?>" onFocus="WdatePicker()"/></td>
	<td><input type="submit" class="btn" value="搜 索"></td>
</tr>
</table></form>
<h3><b>系统日志列表</b></h3>
<table cellspacing="0" cellpadding="0" width="100%" id="ftable">
	<tr class="tr3 s3">
		<td class="tal" style="padding-left:30px">ID</td>
		<td class="tal" width="10%">用户名</td>
		<td class="tal">操作</td>
		<td class="tal" width="20%">时间</td>
	</tr>
<?php 
echo '<pre>';
//print_r($arr);
echo '</pre>';
foreach($arr as $value){?>
	<tr class="tr3">
		<td style="padding-left:30px"><?php echo $value[1]?></td>
		<td><?php echo $value[2]?></td>
		<td><?php echo implode('/',json_decode($value[3],true))?></td>
		<td><?php echo date('Y-m-d H:i:s',$value[0])?></td>
	</tr>
<?php }?>
</table>
<script language="javascript" type="text/javascript" src="admin/date/WdatePicker.js"></script>
<?php $this->template->endblock() ?>